
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简约登录页面</title>
    <style>
        body, h2, p {
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
        }
        .login-container {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin-left: 800px;
            opacity: 0.9;
        }
        .login-box {
            background: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
        }
        .login-box h2 {
            margin-bottom: 20px;
            text-align: center;
        }
        .input-group {
            margin-bottom: 15px;
        }
        .input-group label {
            display: block;
            margin-bottom: 5px;
        }
        .input-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-sizing: border-box;
        }
        .captcha-group {
            text-align: center;
            margin-bottom: 15px;
        }
        .captcha-group img {
            width: 100px;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .submit-button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .submit-button:hover {
            background-color: #0056b3;
        }
        .footer {
            text-align: center;
            margin-top: 10px;
        }
        .footer a {
            margin: 0 10px;
            text-decoration: none;
            color: #007bff;
        }
        .footer a:hover {
            text-decoration: underline;
        }
        body {
            background-image: url('/dom/img/pexels-photo-1323550.webp'); /* 设置页面背景图片 */
            background-size: cover; /* 背景图片覆盖整个元素 */
            background-repeat: no-repeat; /* 背景图片不重复 */
            background-position: center center; /* 背景图片居中显示 */
            background-attachment: fixed; /* 背景图片固定，不随滚动条滚动 */
}
    </style>
</head>
<body>

    <div class="login-container">
        <div class="login-box">
            <h2>用户登录</h2>
            <form action="/dom/php/login.php" method="POST" enctype="application/x-www-form-urlencoded">
                <div class="input-group">
                    <label for="username">用户名</label>
                    <input type="text"name="user" placeholder="请输入用户名">
                </div>
                <div class="input-group">
                    <label for="password">密码</label>
                    <input type="password" name="passwd" placeholder="请输入密码">
                </div>
                <div class="captcha-group">
                    <img class="captcha" src="http://192.168.60.130/dom/php/ma.php" alt="验证码">
                </div>
                <div class="input-group">
                    <input type="text" name="authcode" placeholder="请输入验证码">
                </div>
                <button class="submit-button" type="submit">登录</button>
            </form>
            <div class="footer">
                <a href="forgot-password.html">找回密码</a>
                <a href="/dom/html/register.html">注册</a>
            </div>
        </div>
       
    </div>

</body>
<script>
    var img = document.querySelector('.captcha');
    img.onclick = function () {
        img.src = 'http://192.168.60.130/dom/php/ma.php?' + Math.random();
    }
</script>
</html>